import yagmail

def sendmail(files):
    mail=yagmail.SMTP(user='2539722579@qq.com',password='uncucoutvhxrdicg',host='smtp.qq.com',encoding='utf-8')
    mail.send(to='2539722579@qq.com',subject='a3mall接口测试报告',contents='请查收',attachments=files)